package application;

import java.io.Serializable;

public class ScoreInformation implements Comparable<ScoreInformation>,Serializable{
	private String _name;
	private int _score;
	
	public ScoreInformation(String name, int score){
		this.set_name(name);
		this.set_score(score);
	}
	@Override
	public int compareTo(ScoreInformation other) {
		return  other.get_score() - this.get_score();
	}
	public void set_name(String _name) {
		this._name = _name;
	}
	public String get_name() {
		return _name;
	}
	public void set_score(int _score) {
		this._score = _score;
	}
	public int get_score() {
		return _score;
	}
}
